package com.pt25.service.sys.repository.mysql.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pt25.base.dep.db.po.BasePo;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(
    callSuper = true
)
@TableName("sys_config_data")
public class ConfigDataPo extends BasePo implements Serializable {
  @TableField(
      exist = false
  )
  public static final String key = "sys_config_data";

  /**
   * 配置类型表id(aim_config_type.id)
   */
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  @TableField("config_type_id")
  private Long configTypeId;

  /**
   * 配置数据类型：string,hash,set,list
   */
  @TableField("data_type")
  private String dataType;

  /**
   * key
   */
  @TableField("data_key")
  private String dataKey;

  /**
   * key名称
   */
  @TableField("data_name")
  private String dataName;

  /**
   * key描述
   */
  @TableField("data_description")
  private String dataDescription;

  /**
   * 值类型
   */
  @TableField("value_type")
  private String valueType;
}
